# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=seahorse
pkgver=47.0.1
pkgrel=0
pkgdesc="GNOME application for managing PGP keys."
url="https://projects.gnome.org/seahorse/"
arch="all"
license="GPL-2.0-or-later"
depends="openssh-client dconf gnome-keyring gnupg-dirmngr"
makedepends="
	avahi-dev
	desktop-file-utils
	gcr-dev
	glib-dev
	gobject-introspection-dev
	gpgme-dev
	gtk+3.0-dev
	itstool
	libhandy1-dev
	libpwquality-dev
	libsecret-dev
	libsm-dev
	libsoup3-dev
	libxml2-utils
	meson
	openldap-dev
	vala
	yelp-tools
	"
checkdepends="appstream-glib"
subpackages="$pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/seahorse/${pkgver%.*.*}/seahorse-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Db_lto=true \
		. builddir
	meson compile -C builddir
}

check() {
	meson test --no-rebuild --print-errorlogs -C builddir
}

package() {
	DESTDIR="$pkgdir" meson install -C builddir
}

sha512sums="
ac2a20f4d9106f26932c77dc11b4fbd18c8a83d15991f31ae89223a487fa1b4d97cb19de858cc6f53435b7ebcc1dd0f16148d0d1d3080436f0b541de5a56bfcb  seahorse-47.0.1.tar.xz
"
